ANSI escape codes can be printed to a shell to as instructions. The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again.
A great article about it can be found here.
#! /bin/bash | |
# | |
# This is a simple bash script, designed to allow | |
# quick download and installation of the FindVUK | |
# AACS VUK database. | |
# | |
# This allows Blu-Ray disks who's VUK is known | |
# to be played on systems using libaacs. | |
# | |
# It's reccomended to schedule this file to run |
def deep_merge(dict1: dict, dict2: dict) -> dict: | |
""" Merges two dicts. If keys are conflicting, dict2 is preferred. """ | |
def _val(v1, v2): | |
if isinstance(v1, dict) and isinstance(v2, dict): | |
return deep_merge(v1, v2) | |
return v2 or v1 | |
return {k: _val(dict1.get(k), dict2.get(k)) for k in dict1.keys() | dict2.keys()} |
ANSI escape codes can be printed to a shell to as instructions. The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again.
A great article about it can be found here.
@Component({ | |
selector: 'my-app', | |
template : ` | |
<h3>Class mixin demo</h3> | |
<mixin-demo value="New passed value" [isDisabled]="true"></mixin-demo> | |
`, | |
}) | |
export class AppComponent {} |
The response to my first few posts has been much larger than I’d imagined and I’d like to thank everyone for the encouragement.
If you’re interested in building a trading system I recommend first reading my previous post on general ideas to keep in mind.
My first really technical post will be on how to build a limit order book, probably the single most important component of a trading system. Because the data structure chosen to represent the limit order book will be the primary source of market information for trading models, it is important to make it both absolutely correct and extremely fast.
To give some idea of the data volumes, the Nasdaq TotalView ITCH feed, which is every event in every instrument traded on the Nasdaq, can have data rates of 20+ gigabytes/day with spikes of 3 megabytes/second or more. The individual messages average about 20 bytes each so this means handling
Apps used: Cursor.so / github copilot chat
This is like when humanity stopped using horses for transportation and started using cars. 🐴 👉 🚗
containers: | |
- image: "dockerfile/nginx" | |
ports: | |
- containerPort: 80 | |
hostPort: 8080 |
/** | |
* Utility class for common operations | |
* | |
* Any classes that use Schema.SObjectField, this property is object by calling "Schema.Account.Description" | |
* This allows type safety to ensure that code will not break if fields are changed | |
* this will not work with person accounts | |
* | |
* (c) Advanced Technology Group, 2019 | |
* This code may be used and modified freely as long as this copyright attribution | |
* is included with the code. |